package demo.dubbo;

import demo.dubbo.api.TimeApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @DubboReference
    TimeApi timeApi;

    @RequestMapping
    public Object t() {
        return timeApi.printTime();
    }
}
